0eec3e19ae21a58e910cbf5665cbfdeba6388542,src/main/java/org/springframework/cloud/spinnaker/ModuleService.java,ModuleService,findArtifact,#ModuleDetails#ResourcePatternResolver#Map#,307

Before Change


		final String locationPattern = "classpath*:**/" + details.getArtifact() + "/**/" + details.getArtifact() + "-*.jar";
		final org.springframework.core.io.Resource[] resources = ctx.getResources(locationPattern);

		return Stream.of(resources)
				.findFirst()
				.map(resource -> {
					try {
						log.info("Deploying " + resource.getFilename() + " found at " + resource.getURI().toString());
					} catch (IOException e) {
						e.printStackTrace();
					}
					log.info("Need to also chew on " + data);

					return (details.getName().equals("deck")
							? pluginSettingsJs(resources[0], data)
							: addConfigFile(details, resources[0], ctx));
				})
				.orElseThrow(() -> new RuntimeException("Unable to find artifact for " + details.getArtifact()));
	}

	/**

After Change


							? pluginSettingsJs(resources[0], data)
							: addConfigFile(details, resources[0], ctx));
				})
				.orElseThrow(() -> new RuntimeException("Unable to find artifact for " + details.getArtifact()));

		return this.fileManager.createTempFile(details, streamedArtifact);
	}

	/**